package com.easy.web.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Packge com.giit.forward.entity
 * @Autor naibin.lin
 * @Description
 * @Version 1.0
 * @Date 2022-07-06 10:42
 */
@Entity
@Table(name = "ac_balance")
@Data
public class Balance {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @Id
    private Integer id;

    /**
     * 账号
     */
    private String acNo;

    /**
     * 币种
     */
    private String curCode;

    /**
     * 账户名称
     */
    private String acName;

    /**
     * 账户余额
     */
    private BigDecimal balance;

    /**
     * 可用余额
     */
    private BigDecimal useBalance;

    /**
     * 冻结金额
     */
    private BigDecimal freezeBal;

    /**
     * 查询日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date crtime;

    /**
     * 接口返回信息
     */
    private String resultData;

}
